#pragma once
#include <rtpsession.h>
#include <jthread.h>
#include "MutexBuffer.h"

namespace ipsound
{

class RTPSender : public JThread
{
public:
	RTPSender( MutexBuffer* buffer );
	void* Thread();
	~RTPSender();
private:
	void Init();
private:
	RTPSession* session;
	unsigned short srcPort, dstPort;
	unsigned int dstIp;
	double samplesPerSec;
	size_t packetSize;
	WSADATA dat;
	MutexBuffer* buffer;
	unsigned short bitsPerSample;
};

}